package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.Goods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsDao {
    public int addGoods(@Param("goodName") String goodName, @Param("goodPrice") String goodPrice, @Param("goodImg") String goodImg, @Param("goodInventory") String goodInventory, @Param("goodIntro") String goodIntro, @Param("goodType") String goodType);
    public List<Goods> getAllGoods(@Param("goodName") String goodName);
    public int deleteGoods(int good_id);
    public int editGoods(int good_id,@Param("goodName") String goodName,@Param("goodPrice") String goodPrice,@Param("goodIntro") String goodIntro,@Param("goodType") String goodType);
    public List<Goods> getGoodType(@Param("goodType") String goodType);
    public List<Goods> getOneGood(int good_id);
    public int addCar(@Param("goodName") String goodName,@Param("goodImg") String goodImg,@Param("goodPrice") String goodPrice,@Param("goodNum") String goodNum,@Param("wx_userid") int wx_userid);
    public int countGoodId(@Param("goodName") String goodName,int wx_userid);
}